<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<th:block th:if="${#lists.isEmpty(topFivShopList)}">
    <tr>
        <td colspan="10">
            <div class="noDataTipsBox">
                <p><span class="c-4e fs16">当前条件下暂时没有访客榜统计数据数据~~~</span></p>
            </div>
        </td>
    </tr>
</th:block>
<th:block th:if="!${#lists.isEmpty(topFivShopList)}" th:each="shop,index : ${topFivShopList}">
    <tr>
        <td>
            <div class="media stat-goods-rank__wrap">
                <div class="media-left pull-left" th:if="${shop['goodsType']}=='COURSE' or ${shop['goodsType']}=='BOOK'">
                    <span class="badge badge-danger" th:if="${index.count}==1">1</span>
                    <span class="badge badge-warning" th:if="${index.count}==2">2</span>
                    <span class="badge badge-info" th:if="${index.count}==3">3</span>
                    <span class="badge badge-primary" th:if="${index.count}==4">4</span>
                    <span class="badge badge-success" th:if="${index.count}==5">5</span>
                    <th:block th:if="${shop['goodsType']}=='COURSE'">
                        <img class="media-object" style="width: 70px;height: 40px;" th:src="${shop['shop']['course']['imageMap']['pcUrlMap']['large']}" width="70" height="40">
                    </th:block>
                    <th:block th:if="${shop['goodsType']}=='BOOK'">
                        <img class="media-object" style="width: 70px;height: 40px;" th:src="${shop['shop']['book']['imageMap']['pcUrlMap']['large']}" width="70" height="40">
                    </th:block>
                </div>
                <div class="media-body">
                    <th:block th:if="${shop['goodsType']}=='EXAM'">
                        <span class="badge badge-danger" th:if="${index.count}==1">1</span>
                        <span class="badge badge-warning" th:if="${index.count}==2">2</span>
                        <span class="badge badge-info" th:if="${index.count}==3">3</span>
                        <span class="badge badge-primary" th:if="${index.count}==4">4</span>
                        <span class="badge badge-success" th:if="${index.count}==5">5</span>
                    </th:block>
                    <span class="fs14 c-master" th:text="${shop['shop']['shopName']}">--</span>
                    <br>
                    <span class="fs12 c-666" th:if="${shop['goodsType']}=='EXAM'">试卷</span>
                    <span class="fs12 c-666" th:if="${shop['goodsType']}=='BOOK'">图书</span>
                    <th:block th:if="${shop['goodsType']}=='COURSE'">
                        <span class="fs12 c-666" th:if="${shop['shop']['course']['courseTypeKey']}=='VIDEO'">录播</span>
                        <span class="fs12 c-666" th:if="${shop['shop']['course']['courseTypeKey']}=='LIVE'">直播</span>
                        <span class="fs12 c-666" th:if="${shop['shop']['course']['courseTypeKey']}=='COLUMNS'">专栏</span>
                        <span class="fs12 c-666" th:if="${shop['shop']['course']['courseTypeKey']}=='PACKAGE'">套餐</span>
                    </th:block>
                </div>
            </div>
        </td>
        <td class="text-center"><b class="line" th:text="${shop['uvCount']}==0 ? '--':${shop['uvCount']}">--</b></td>
        <td class="text-center"><b class="line" th:text="${shop['orderNum']}==0 ? '--':${shop['orderNum']}">--</b></td>
    </tr>
</th:block>
</html>
